// license-header java merge-point
/**
 * This is only generated once! It will never be overwritten.
 * You can (and have to!) safely modify it by hand.
 */
package com.jrsystems.fleet.request;
/**
 * @see com.jrsystems.fleet.request.ImprestRequest
 */
public class ImprestRequestDaoImpl
    extends com.jrsystems.fleet.request.ImprestRequestDaoBase
{
    /**
     * @see com.jrsystems.fleet.request.ImprestRequestDao#searchByCriteria(com.jrsystems.fleet.request.vo.ImprestSearchCriteria)
     */
    protected com.jrsystems.fleet.request.vo.ImprestRequestVO[] handleSearchByCriteria(com.jrsystems.fleet.request.vo.ImprestSearchCriteria criteria)
    {
        // @todo implement public com.jrsystems.fleet.request.vo.ImprestRequestVO[] handleSearchByCriteria(com.jrsystems.fleet.request.vo.ImprestSearchCriteria criteria)
        return null;
}

    /**
     * @see com.jrsystems.fleet.request.ImprestRequestDao#toImprestRequestVO(com.jrsystems.fleet.request.ImprestRequest, com.jrsystems.fleet.request.vo.ImprestRequestVO)
     */
    public void toImprestRequestVO(
        com.jrsystems.fleet.request.ImprestRequest source,
        com.jrsystems.fleet.request.vo.ImprestRequestVO target)
    {
        // @todo verify behavior of toImprestRequestVO
        super.toImprestRequestVO(source, target);
        // WARNING! No conversion for target.transportRequest (can't convert source.getTransportRequest():com.jrsystems.fleet.request.TransportRequest to com.jrsystems.fleet.request.vo.TransportRequestVO
    }


    /**
     * @see com.jrsystems.fleet.request.ImprestRequestDao#toImprestRequestVO(com.jrsystems.fleet.request.ImprestRequest)
     */
    public com.jrsystems.fleet.request.vo.ImprestRequestVO toImprestRequestVO(final com.jrsystems.fleet.request.ImprestRequest entity)
    {
        // @todo verify behavior of toImprestRequestVO
        return super.toImprestRequestVO(entity);
    }


    /**
     * Retrieves the entity object that is associated with the specified value object
     * from the object store. If no such entity object exists in the object store,
     * a new, blank entity is created
     */
    private com.jrsystems.fleet.request.ImprestRequest loadImprestRequestFromImprestRequestVO(com.jrsystems.fleet.request.vo.ImprestRequestVO imprestRequestVO)
    {
        // @todo implement loadImprestRequestFromImprestRequestVO
        throw new java.lang.UnsupportedOperationException("com.jrsystems.fleet.request.loadImprestRequestFromImprestRequestVO(com.jrsystems.fleet.request.vo.ImprestRequestVO) not yet implemented.");

        /* A typical implementation looks like this:
        com.jrsystems.fleet.request.ImprestRequest imprestRequest = this.load(imprestRequestVO.getId());
        if (imprestRequest == null)
        {
            imprestRequest = com.jrsystems.fleet.request.ImprestRequest.Factory.newInstance();
        }
        return imprestRequest;
        */
    }

    
    /**
     * @see com.jrsystems.fleet.request.ImprestRequestDao#imprestRequestVOToEntity(com.jrsystems.fleet.request.vo.ImprestRequestVO)
     */
    public com.jrsystems.fleet.request.ImprestRequest imprestRequestVOToEntity(com.jrsystems.fleet.request.vo.ImprestRequestVO imprestRequestVO)
    {
        // @todo verify behavior of imprestRequestVOToEntity
        com.jrsystems.fleet.request.ImprestRequest entity = this.loadImprestRequestFromImprestRequestVO(imprestRequestVO);
        this.imprestRequestVOToEntity(imprestRequestVO, entity, true);
        return entity;
    }


    /**
     * @see com.jrsystems.fleet.request.ImprestRequestDao#imprestRequestVOToEntity(com.jrsystems.fleet.request.vo.ImprestRequestVO, com.jrsystems.fleet.request.ImprestRequest)
     */
    public void imprestRequestVOToEntity(
        com.jrsystems.fleet.request.vo.ImprestRequestVO source,
        com.jrsystems.fleet.request.ImprestRequest target,
        boolean copyIfNull)
    {
        // @todo verify behavior of imprestRequestVOToEntity
        super.imprestRequestVOToEntity(source, target, copyIfNull);
    }

}